<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/session.jsp"%>
<c:set var="deptParentId" value="${param.deptParentId}" />
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
    <title>信息部管理</title>
    <script type="text/javascript" src="${ctx}/js/xtable.js"></script>
    <script type="text/javascript" src="${ctx}/js/validator.js"></script>
    <script type="text/javascript" src="${ctx}/dwr/engine.js"></script>
    <script type="text/javascript" src="${ctx}/dwr/util.js"></script>
    <script type="text/javascript" src="${ctx}/js/loading.js"></script>
    <script type="text/javascript" src="${ctx}/dwr/interface/ChargePolicyService.js"></script>
</head>
<body>
<SCRIPT LANGUAGE="JavaScript" type="">
    var deptThead = new Array(
            new XThead("编号"),
            new XThead("名称"),
            new XThead("周期"),
            new XThead("金额"),
            new XThead("状态"),
            new XThead("日期")
    );

    var deptXTable = new XTable("dept", deptThead, true);

    deptXTable.XTbodyArray = function (model) {
        var array = new Array(
                new XTbody("dept", model.chargePolicyCode, null, null, null, "center"),
                new XTbody("dept", model.chargePolicyName, null, null, null, "center"),
                new XTbody("dept", model.chargePolicyPeriod, null, null, null, "center"),
                new XTbody("dept", model.chargePolicyMoney, null, null, null, "center"),
                new XTbody("dept", model.chargePolicyState, null, null, null, "center"),
                new XTbody("dept", new Date(model.chargePolicyState).Format("yyyy/MM/dd"), null, null, null, "center")
        );

        return array;
    }
    deptXTable.getXList = function (page){
        var chargePolicy = new ChargePolicy();
        ChargePolicyService.selectChargePolicyList(chargePolicy, function(list){deptXTable.addTable(list);});
    }
</SCRIPT>
</body>
</html>
<script type="text/javascript">
    deptXTable.goPage(1);
</script>